import React, {FC} from 'react';
import "./index.less";
import {Pagination} from "antd";
import classNames from "classnames";
import type {GetProps} from 'antd';

interface HxPaginationProps extends GetProps<typeof Pagination> {

}

/**
 * 分页
 */
const HxPagination: FC<HxPaginationProps> = (props) => {
  const {className, hideOnSinglePage=true,...rest} = props;

  return (
    <Pagination className={classNames("hx-pagination", className)} hideOnSinglePage={hideOnSinglePage} {...rest}/>
  );
};

export default HxPagination;
